﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:RubricaSentimentale="clr-namespace:RubricaSentimentale" 
    x:Class="RubricaSentimentale.View.Visualizza" 
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="480"/>
    	</Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="265"/>
            <RowDefinition Height="79"/>
            <RowDefinition Height="424"/>
        </Grid.RowDefinitions>
        

    	<ScrollViewer x:Name="Scroll" Grid.RowSpan="3" Height="768" UseLayoutRounding="False">
    		<Grid x:Name="grCont">
    			<Grid Height="265" VerticalAlignment="Top">
    				<Grid.ColumnDefinitions>
    					<ColumnDefinition Width="0.14*"/>
    					<ColumnDefinition Width="0.733*"/>
    					<ColumnDefinition Width="0.127*"/>
    				</Grid.ColumnDefinitions>
    				<Rectangle Stroke="Black" RadiusY="48.5" RadiusX="48.5" Grid.Column="1">
    					<Rectangle.Fill>
    						<ImageBrush ImageSource="{Binding Image}"/>
    					</Rectangle.Fill>
    				</Rectangle>
    			</Grid>
    			<Grid Margin="0,265,0,0" RenderTransformOrigin="0.496,0.658">
    				<Grid.RowDefinitions>
    					<RowDefinition Height="503"/>
    				</Grid.RowDefinitions>
    				<TextBlock TextWrapping="Wrap" FontSize="40" TextAlignment="Center" FontFamily="Comic Sans MS" VerticalAlignment="Top"><Run/><Run Text="{Binding Nome}"/><Run Text=" "/><Run Text="{Binding Cognome}"/></TextBlock>
    				<RubricaSentimentale:Infos Margin="0" VerticalAlignment="Bottom" x:Name="information" />
    			</Grid>
    		</Grid>
    	</ScrollViewer>
        

        <!--TitlePanel contains the name of the application and page title-->

        <!--ContentPanel - place additional content here-->
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="False" Mode="Default">
            <shell:ApplicationBarIconButton x:Name="btnElimina" IconUri="/icons/appbar.delete.rest.png" Text="Elimina" Click="Elimina"/>
            <shell:ApplicationBarIconButton IconUri="/icons/appbar.edit.rest.png" Text="modifica" x:Name="btnModifica" Click="btnModifica_Click" />
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
